﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>   
<head>
<title>东方易云后台管理系统</title>
<style>
body { background: #f5f5f5 ;}
</style>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
</head>
<script language="javascript">
function goPage(pageNo) {
	document.goPageForm.pageNo.value = pageNo;
	document.goPageForm.submit();
}
function addSelect(){
	document.selectForm.action="transPropertyAdd";
	document.selectForm.submit();
}
function editSelect(fcCode,fiCatagory){
	document.selectForm.action="transPropertyEdit";
	$("#fcCode").val(fcCode);
	$("#fiCatagory").val(fiCatagory);
	document.selectForm.submit();
}
</script>
<body>
<body>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title">
      <h3>属性参数管理</h3></div>
    <div class="pgline"></div>
    <div class="notification querytj png_bg">
      <div>
      <form method="post" action="transProperty" id="selectForm" name="selectForm">
      <input type="hidden" id="pageNo" name="pageNo" value="<c:out value='${pageNo }' />">
      <input type="hidden" id="fcCode" name="fcCode" value="">
      <input type="hidden" id="fiCatagory" name="fiCatagory" value="">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="9%" height="35" align="right">&nbsp;&nbsp;编号：              </td>
            <td width="35%"><input type="text" name="fcCodeSelect"  class="input2" value="<c:out value='${fcCodeSelect }' />"/></td>
            <td width="8%" align="right">名称：               </td>
            <td width="31%"><input type="text" name="fcNameSelect"  class="input2" value="<c:out value='${fcNameSelect }' />"/></td>
            <td width="17%" rowspan="2"><div><a class="button" href="javascript:void(0);" onclick="$('#selectForm').submit();">查询</a></div></td>
          </tr>
          <tr>
            <td height="35" align="right">&nbsp;&nbsp;类型名称：              </td>
            <td height="35">
            <select name="fiCatagorySelect" class="select1" >
            <c:forEach var="map" items="${TRANS_PROPERTY_FICATAGORY_MAP}">
            	<option value="<c:out value='${map.key}'/>" <c:out value="${fiCatagorySelect== map.key?'Selected':''}"></c:out>><c:out value='${map.value }'/></option>
            </c:forEach>
            </select>
            </td>
            <td></td>
            <td></td>
          </tr>
        </table>
        </form>
      </div>
    </div>
    <div class="clear"></div>
    
        <div class="bulk-actions align-left"> <a class="button2" href="javascript:void(0)" onclick="addSelect();">新建</a> </div>
  <div class="clear"></div>
    
    
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>查询结果列表</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab">
          <table>
            <thead>
              <tr>
                <th>名称</th>
                <th>编号</th>
                <th>类型</th>
                <th>操作</th>
              </tr>
            </thead>
            <tfoot>
              <tr>
                <td colspan="6">
                 <c:out value="${pageInfo}" escapeXml="false"></c:out>
                  <!-- End .pagination -->
                  <div class="clear"></div></td>
              </tr>
            </tfoot>
            <tbody>
             <c:forEach var="dataxDictionaryVO" items="${dataxDictionaryVOList}">
              <tr>
                <td><c:out value="${dataxDictionaryVO.fcName}"></c:out></td>
                <td><c:out value="${dataxDictionaryVO.id.fcCode}"></c:out></td>
                <td><c:out value="${TRANS_PROPERTY_FICATAGORY_MAP[fn:trim(dataxDictionaryVO.id.fiCatagory)]}"></c:out></td>
                <td><a href="javascript:void(0)" onclick="editSelect('<func:javaScriptEncode inputString="${dataxDictionaryVO.id.fcCode}" />','<func:javaScriptEncode inputString="${dataxDictionaryVO.id.fiCatagory}" />');"  title="Edit" ><img src="resource/images/pencil.png" alt="修改" border="0" /></a></td>
              </tr>
          
             </c:forEach>
            </tbody>
          </table>
        </div>
        <!-- End #tab1 -->
      </div>
      <!-- End .content-box-content -->
    </div>
  </div>
  <!-- End #main-content -->
</div>
<form method="post" action="transProperty" id="goPageForm" name="goPageForm">
      <input type="hidden" name="pageNo" value="<c:out value='${pageNo }'/>" />
      <input type="hidden" id="fcCodeSelect" name="fcCodeSelect" value="<c:out value='${fcCodeSelect }' />">
      <input type="hidden" id="fiCatagorySelect" name="fiCatagorySelect" value="<c:out value='${fiCatagorySelect }' />">
      <input type="hidden" id="fcNameSelect" name="fcNameSelect" value="<c:out value='${fcNameSelect }' />">
</form>
</body>
</html>

